import java.util.Random;

public class suijishu {
    public static void main(String[] args) {
        int arr[] = new int[10];
        int[] arr1 = getArray(arr);
        double avg = getAv(arr1);
        System.out.println(avg);
    }

    public static int[] getArray(int[] arr) {
        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i] = r.nextInt(100) + 1;
        }
        return arr;
    }

    public static double getAv(int[] arr) {
        double sum = 0;
        for (int i = 0; i < arr.length; i++) {
            sum += arr[i];
        }

        double avg = sum / arr.length;
        return avg;
    }

}
